source /home/work_nfs7/xlgeng/.bashrc
dir=/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/exp/salmonn_v15/5_epoch_ICL_train
mkdir -p $dir
train_config=conf/train_salmonn_v15.yaml
test_data_dir="/home/work_nfs8/xlgeng/data/scp_test"
test_sets="aishell1 aishell2 test_net test_meeting speechio_0 speechio_1 speechio_2 speechio_3 speechio_4"

test_data_dir2="/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/data_list/kespeech"
test_sets2="Beijing/test Ji-Lu/test Jiang-Huai/test Jiao-Liao/test Lan-Yin/test Northeastern/test Southwestern/test Zhongyuan/test"

test_data_dir3="/home/work_nfs14/xlgeng/asr_data_raw/test_data_raw/Leaderboard/datasets"
test_sets3="SPEECHIO_ASR_ZH00026 SPEECHIO_ASR_ZH00025 SPEECHIO_ASR_ZH00024 SPEECHIO_ASR_ZH00023 SPEECHIO_ASR_ZH00022 SPEECHIO_ASR_ZH00021 SPEECHIO_ASR_ZH00020 SPEECHIO_ASR_ZH00019 SPEECHIO_ASR_ZH00018 SPEECHIO_ASR_ZH00017"

decode_checkpoint_name="step_29988"
decode_checkpoint=$dir/"${decode_checkpoint_name}".pt
stage=5
stop_stage=5


echo "final checkpoint is $decode_checkpoint"
test_sets=$(echo "$test_sets" | sed 's/ /--/g')
test_sets1=$(echo "$test_sets1" | sed 's/ /--/g')
test_sets2=$(echo "$test_sets2" | sed 's/ /--/g')
test_sets3=$(echo "$test_sets3" | sed 's/ /--/g')
gxl_num="paraformer-"

mode="first10"
decode_checkpoint_name="paraformer_speechio_${mode}"
my_named_nohup "${gxl_num}_speechio_more_set1" ./recognize_common_icl_speechio.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="last10"
decode_checkpoint_name="paraformer_speechio_${mode}"
my_named_nohup "${gxl_num}_speechio_more_set2" ./recognize_common_icl_speechio.sh --gpu_id 1 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="random10_1"
decode_checkpoint_name="paraformer_speechio_${mode}"
my_named_nohup "${gxl_num}_speechio_more_set3" ./recognize_common_icl_speechio.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}

mode="random10_2"
decode_checkpoint_name="paraformer_speechio_${mode}"
my_named_nohup "${gxl_num}_speechio_more_set4" ./recognize_common_icl_speechio.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir3"  --test_sets "$test_sets3" --mode ${mode}


echo "finish!"